<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var x=1
    console.log(x.toString().padEnd(2,0));
    var sx='10'
    console.log(sx.padEnd(3,0));

    var xxs='1'
    var xs='1'
    var ssx=`${xs}.${xxs.padEnd(2,'0')}`
    console.log(ssx);

    var Az='0'
    var XZ='2'
    var AzZ=`${XZ}.${Az.padEnd(2,'0')}`
    console.log(AzZ);


    var xcs=10.2123134513134
    console.log(xcs.toFixed(2));
</script>
</html>